<?php

/*
 * This file is part of PHP CS Fixer.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *     Dariusz Rumiński <dariusz.ruminski@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace app\common\lib;

/**
 * 时间
 * Class IAuth.
 */
class Time
{
    /**
     * 获取13位时间戳.
     *
     * @return int
     */
    public static function get13TimeStamp()
    {
        list($t1, $t2) = explode(' ', microtime());

        return $t2.ceil($t1 * 1000);
    }

    /**
     * 获取当天的开始日期跟结束日期
     *
     * @param mixed $date
     */
    public function getDay($date)
    {
//        return [
//             $date,  strtolower($date)
//
//        ]
    }
}
